package com.brillilab.domain.enums.account;

import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
public enum ExchangeStateEnum {
    AUDIT_WAIT("待审核",0),EXCHANGE("已兑换",1),AUDIT_FAIL("审核失败",2);
	public String name;
    private Integer value;
    
    public static String getKey(Integer value) {
        for (ExchangeStateEnum p : ExchangeStateEnum.values()) {
            if (p.getValue().equals(value)) {
                return p.name;
            }
        }
        return null;
    }
}
